package com.wdl.modules.myhouse.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.wdl.modules.myhouse.entity.UserAnimeEntity;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 动漫用户关联表
 *
 * @author lucain sunlightcs@gmail.com
 * @since 1.0.0 2022-09-10
 */
@Mapper
public interface UserAnimeDao extends BaseMapper<UserAnimeEntity> {

    /**
     * 根据用户id.,查找动漫信息
     * @param userId
     * @return
     */
    @MapKey("id")
    Map<Integer,Object> getAnimeByUserId(@Param("userId") Integer userId);

}